package com.caesar.Test;

import org.junit.jupiter.api.*;

/**
 * @author caesar
 * @date 2025/7/11
 * @Description:
 * @apiNote
 */
public class TestJunit {
    @BeforeAll
    public static void beforeAll()
    {
        System.out.println("初始化");
    }

    @BeforeEach
    public void beforeEach()
    {
        System.out.println("开始测试");
    }

    @AfterEach
    public void afterEach()
    {
        System.out.println("结束测试");
    }
    @Test
    public void test1()
    {
        System.out.println("测试方法1");
    }
    @Test
    public void test(){
        
    }
    @Test
    public void test2(){
        System.out.println("测试方法2");
    }

    @AfterAll
    public static void afterAll()
    {
        System.out.println("结束");
    }
}
